/**
 * Copyright &copy; 2013-2016 山东易科德软件有限公司 All rights reserved.
 */
package cn.net.ecode.modules.cms.entity;

import java.util.Date;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import cn.net.ecode.common.config.Global;
import cn.net.ecode.common.persistence.DataEntity;

/**
 * 文章Entity
 * @author ThinkGem
 * @version 2014-9-16
 */
public class ArticleData extends DataEntity<ArticleData> {

	private static final long serialVersionUID = 1L;
	private String content;	// 内容
	private String relation;// 相关文章
	private String allowComment;// 是否允许评论
	private String extendS1;	// 扩展字段String1
	private String extendS2;	// 扩展字段String2
	private String extendS3;	// 扩展字段String3
	private String extendS4;	// 扩展字段String4
	private String extendS5;	// 扩展字段String5
	private Long extendI1;		// 扩展字段Integer1
	private Long extendI2;		// 扩展字段Integer2
	private Long extendI3;		// 扩展字段Integer3
	private Float extendF1;		// 扩展字段Float1
	private Float extendF2;		// 扩展字段Float2
	private Float extendF3;		// 扩展字段Float3
	private Date extendD1;		// 扩展字段Date1
	private Date extendD2;		// 扩展字段Date2
	private Date extendD3;		// 扩展字段Date3

	public ArticleData() {
		super();
		this.allowComment = Global.YES;
	}
	
	public ArticleData(String id){
		this();
		this.id = id;
	}

	@NotBlank
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Length(min=0, max=255)
	public String getRelation() {
		return relation;
	}

	public void setRelation(String relation) {
		this.relation = relation;
	}

	@NotBlank
	@Length(min=0, max=1)
	public String getAllowComment() {
		return allowComment;
	}

	public void setAllowComment(String allowComment) {
		this.allowComment = allowComment;
	}
	
	public String getExtendS1() {
		return extendS1;
	}

	public void setExtendS1(String extendS1) {
		this.extendS1 = extendS1;
	}

	public String getExtendS2() {
		return extendS2;
	}

	public void setExtendS2(String extendS2) {
		this.extendS2 = extendS2;
	}

	public String getExtendS3() {
		return extendS3;
	}

	public void setExtendS3(String extendS3) {
		this.extendS3 = extendS3;
	}

	public String getExtendS4() {
		return extendS4;
	}

	public void setExtendS4(String extendS4) {
		this.extendS4 = extendS4;
	}

	public String getExtendS5() {
		return extendS5;
	}

	public void setExtendS5(String extendS5) {
		this.extendS5 = extendS5;
	}

	public Long getExtendI1() {
		return extendI1;
	}

	public void setExtendI1(Long extendI1) {
		this.extendI1 = extendI1;
	}

	public Long getExtendI2() {
		return extendI2;
	}

	public void setExtendI2(Long extendI2) {
		this.extendI2 = extendI2;
	}

	public Long getExtendI3() {
		return extendI3;
	}

	public void setExtendI3(Long extendI3) {
		this.extendI3 = extendI3;
	}

	public Float getExtendF1() {
		return extendF1;
	}

	public void setExtendF1(Float extendF1) {
		this.extendF1 = extendF1;
	}

	public Float getExtendF2() {
		return extendF2;
	}

	public void setExtendF2(Float extendF2) {
		this.extendF2 = extendF2;
	}

	public Float getExtendF3() {
		return extendF3;
	}

	public void setExtendF3(Float extendF3) {
		this.extendF3 = extendF3;
	}

	public Date getExtendD1() {
		return extendD1;
	}

	public void setExtendD1(Date extendD1) {
		this.extendD1 = extendD1;
	}

	public Date getExtendD2() {
		return extendD2;
	}

	public void setExtendD2(Date extendD2) {
		this.extendD2 = extendD2;
	}

	public Date getExtendD3() {
		return extendD3;
	}

	public void setExtendD3(Date extendD3) {
		this.extendD3 = extendD3;
	}

}